package o;

import java.io.IOException;

public final class auq<T> extends ato<T> {
    private ato<T> ʻ;
    private final atf<T> ˊ;
    private final ats ˋ;
    final atb ˎ;
    private final auv<T> ˏ;
    private final atn<T> ॱ;
    private final c ᐝ = new c();

    final class c implements atm, ati {
        final /* synthetic */ auq ˎ;

        private c(auq o_auq) {
            this.ˎ = o_auq;
        }
    }

    public auq(atn<T> o_atn_T, atf<T> o_atf_T, atb o_atb, auv<T> o_auv_T, ats o_ats) {
        this.ॱ = o_atn_T;
        this.ˊ = o_atf_T;
        this.ˎ = o_atb;
        this.ˏ = o_auv_T;
        this.ˋ = o_ats;
    }

    public T ˏ(auy o_auy) throws IOException {
        if (this.ˊ == null) {
            return ˏ().ˏ(o_auy);
        }
        ath ॱ = auc.ॱ(o_auy);
        if (ॱ.ॱॱ()) {
            return null;
        }
        return this.ˊ.ॱ(ॱ, this.ˏ.ˏ(), this.ᐝ);
    }

    public void ˎ(aux o_aux, T t) throws IOException {
        if (this.ॱ == null) {
            ˏ().ˎ(o_aux, t);
        } else if (t == null) {
            o_aux.ᐝ();
        } else {
            auc.ˎ(this.ॱ.ॱ(t, this.ˏ.ˏ(), this.ᐝ), o_aux);
        }
    }

    private ato<T> ˏ() {
        ato<T> o_ato_T = this.ʻ;
        if (o_ato_T != null) {
            return o_ato_T;
        }
        o_ato_T = this.ˎ.ˋ(this.ˋ, this.ˏ);
        this.ʻ = o_ato_T;
        return o_ato_T;
    }
}
